package com.fs.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务人员认证审核对象 worker_certification_audit
 *
 * @author zh
 * @date 2024-10-22
 */
public class WorkerCertificationAudit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 服务人员id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long serveProviderId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String idCardNo;

    /**
     * 身份证正面
     */
    @Excel(name = "身份证正面")
    private String frontImg;

    /**
     * 身份证反面
     */
    @Excel(name = "身份证反面")
    private String backImg;

    /**
     * 证明资料
     */
    @Excel(name = "证明资料")
    private String certificationMaterial;

    /**
     * 审核状态，0：未审核，1：已审核
     */
    @Excel(name = "审核状态，0：未审核，1：已审核")
    private Integer auditStatus;

    /**
     * 审核人id
     */
    @Excel(name = "审核人id")
    private Long auditorId;

    /**
     * 审核人姓名
     */
    @Excel(name = "审核人姓名")
    private String auditorName;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /**
     * 认证状态，1：认证中，2：认证成功，3认证失败
     */
    @Excel(name = "认证状态，1：认证中，2：认证成功，3认证失败")
    private Integer certificationStatus;

    /**
     * 驳回原因
     */
    @Excel(name = "驳回原因")
    private String rejectReason;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setServeProviderId(Long serveProviderId) {
        this.serveProviderId = serveProviderId;
    }

    public Long getServeProviderId() {
        return serveProviderId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setFrontImg(String frontImg) {
        this.frontImg = frontImg;
    }

    public String getFrontImg() {
        return frontImg;
    }

    public void setBackImg(String backImg) {
        this.backImg = backImg;
    }

    public String getBackImg() {
        return backImg;
    }

    public void setCertificationMaterial(String certificationMaterial) {
        this.certificationMaterial = certificationMaterial;
    }

    public String getCertificationMaterial() {
        return certificationMaterial;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditorId(Long auditorId) {
        this.auditorId = auditorId;
    }

    public Long getAuditorId() {
        return auditorId;
    }

    public void setAuditorName(String auditorName) {
        this.auditorName = auditorName;
    }

    public String getAuditorName() {
        return auditorName;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setCertificationStatus(Integer certificationStatus) {
        this.certificationStatus = certificationStatus;
    }

    public Integer getCertificationStatus() {
        return certificationStatus;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serveProviderId", getServeProviderId())
                .append("name", getName())
                .append("idCardNo", getIdCardNo())
                .append("frontImg", getFrontImg())
                .append("backImg", getBackImg())
                .append("certificationMaterial", getCertificationMaterial())
                .append("auditStatus", getAuditStatus())
                .append("auditorId", getAuditorId())
                .append("auditorName", getAuditorName())
                .append("auditTime", getAuditTime())
                .append("certificationStatus", getCertificationStatus())
                .append("createTime", getCreateTime())
                .append("rejectReason", getRejectReason())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
